from timeit import timeit
# 计算用时，传进去是字符串
timeit("(i for i in range(10))")   # 0.8021837649994268